/**
 * @Author: colpu
 * @Date: 2025-03-29 17:57:34
 * @LastEditors: colpu ycg520520@qq.com
 * @LastEditTime: 2025-04-02 19:54:03
 * @
 * @Copyright (c) 2025 by colpu, All Rights Reserved.
 */
import shell from 'shelljs'; // 脚本执行

/**
 * @function inspect 执行命令方法
 * @param {String} env 环境变量
 * @param {String} argv bash 参数
 * @description 本地开发
 */

export default async function inspect(env, argv) {
  process.env.NODE_ENV = env;
  const bash = `NODE_ENV=${env} node --inspect-brk ./node_modules/@colpu/cli/script/service.js`
  shell.echo(bash);
  shell.exec(bash);
};
